package com.wufeng.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName chat_record
 */
@TableName(value ="chat_record")
@Data
public class ChatRecord implements Serializable {
    /**
     * 聊天记录Id
     */
    @TableId(value = "chatId", type = IdType.AUTO)
    private Integer chatid;

    /**
     * 发送者Id
     */
    @TableField(value = "sendId")
    private Integer sendid;

    /**
     * 接收者Id
     */
    @TableField(value = "receivedId")
    private Integer receivedid;

    /**
     * 消息内容
     */
    @TableField(value = "message")
    private String message;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createtime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}